; rdcmd.inc
; Command channel routines for FE3 RAM Disk
;

	CMD_CHANNEL = 15

	STATUS_OK = 0
	STATUS_SCRATCH_RESULT = 1
	STATUS_FILE_NOT_OPEN = 2
	STATUS_FILE_NOT_FOUND = 3
	STATUS_DISK_FULL = 4
	STATUS_RESET = 5
	STATUS_SYNTAX_ERROR = 6
	STATUS_RECORD_NOT_PRESENT = 7
	STATUS_RECORD_OVERFLOW = 8
	STATUS_FILE_TOO_LARGE = 9
	STATUS_NO_CHANNEL = 10
	STATUS_FILE_EXISTS = 11
	STATUS_ILLEGAL_TRACK = 12

.IFDEF _IN_RDCMD

	.export cmd_init
	.export cmd_read
	.export cmd_write
	.export cmd_setst
	.export cmd_open
	.export cmd_chkin
	.export cmd_ckout
	.export cmd_clrch
		
	.export exec_cmd
	
	.export rdhook
	.export wrhook
	
.ELSE

	.import cmd_init
	.import cmd_read
	.import cmd_write
	.import cmd_setst
	.import cmd_open
	.import cmd_chkin
	.import cmd_ckout
	.import cmd_clrch

	.import exec_cmd 

	.import rdhook
	.import wrhook

.ENDIF
